$(function() {
	mui(".ydjt").on('tap', '.ydjt_y', function() {
		window.location.href = 'my_yue.html';
	})
	mui(".ydjt").on('tap', '.ydjt_d', function() {
		window.location.href = 'my_daijinquan.html';
	})
	mui(".ydjt").on('tap', '.ydjt_j', function() {
		window.location.href = 'my_jifen.html';
	})
	$(".qsz span").each(function() {
		$(this).on('tap', function() {
			if($(this).text() == '全部') {
				$('.xuanzhong1').show();
				$('.xuanzhong2').hide();
				$('.xuanzhong3').hide();
			} else if($(this).text() == '收入') {
				$('.xuanzhong2').show();
				$('.xuanzhong1').hide();
				$('.xuanzhong3').hide();
			} else if($(this).text() == '支出') {
				$('.xuanzhong3').show();
				$('.xuanzhong1').hide();
				$('.xuanzhong2').hide();
			}
		})
	})
	//页面滚动到一定距离时，顶部背景颜色变化
	$(window).scroll(function(){
		var h_num = $(window).scrollTop();
		if (h_num>190) {
			$('.shopping_head1').css("background","#d44444");
		} else{
			$('.shopping_head1').css("background","transparent");
		}
	})
	//点击充值进入余额充值页面
	mui(".all_box").on('tap', '.chongzhi', function() {
		window.location.href = 'yue_recharge.html';
	})
	//点击进入交易详情
	$('.all_details').each(function(){
		$(this).find('.select_data_box').on('tap',function(){
			window.location.href = 'deal_details.html';
		})
	})
})